package org.finney.interceptors;

import com.opensymphony.xwork2.ActionInvocation;

public class HeaderInterceptor implements com.opensymphony.xwork2.interceptor.Interceptor {
	
	private static final long serialVersionUID = -6061565673466535852L;

	public void destroy() {
		System.out.println("destroy");
	}

	public void init() {
    	System.out.println("init");
    }

	public String intercept(ActionInvocation invocation) throws Exception {
		System.out.println("intercept before");
    	String invoke = invocation.invoke();
    	System.out.println("intercept after");
		return invoke;
    }
}
